package summer_vacation.shilaihong.twoday;

import java.util.Scanner;

/**
 * Created by alh on 2015/9/5.
 */
public class N8 {
    public static void main(String args[])
    {
        long sum=0,a=1;
        long i=1;
        while(i<=10)
        {
            if(i>=1)
                sum=sum+a;
            i++;
            a=a*i;
        }
        System.out.println("sum="+sum);
    }
}
